﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace giaoxuhaison.Common
{
    public interface IEntityHelper
    {
        int GetIdValue<T>(T obj);
        int GetKeyValueOfBusinessEntity<T>(T obj);
        string GetPropertyNameOfEntityByDisplayName<T>(string displayName);
        string GetPropertyNameOfEntityByDisplayName<T>(string displayName, T source);
        PropertyInfo GetPropertyOfEntityByDisplayName<T>(string displayName);
        PropertyInfo GetPropertyOfEntityByDisplayName<T>(string displayName, T source);
        Type GetPropertyType(Type modelType, string propertyName);
    }
}
